//
//  Plane.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Plane.h"

@implementation Plane

-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setBrand:(NSString *)brand{
    _brand = brand;
}
-(NSString *)brand{
    return _brand;
}
-(void)setTon:(NSInteger)ton{
    _ton = ton;
}
-(NSInteger)ton{
    return _ton;
}
-(void)setAmount:(NSInteger)amount{
    _amount = amount;
}
-(NSInteger)amount{
    return _amount;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld %ld", _name, _brand, _ton, _amount);
}
-(instancetype)initWithName:(NSString *)name withBrand:(NSString *)brand withTon:(NSInteger)ton withAmount:(NSInteger)amount{
    self = [super init];
    if(self){
        _name = name;
        _brand = brand;
        _ton = ton;
        _amount = amount;
    }
    return self;
}



@end
